package com.wontube.smr.web.client.admin;

import java.util.List;

import com.wontube.smr.client.model.po.Country;
import com.wontube.smr.client.model.po.WebsiteCategory;
import com.wontube.smr.client.model.po.WebsiteLink;


/**
 * 
 * @author LuoBiao
 *
 */
public interface IAdminWebsiteLinkHandler {
	List<WebsiteLink> listWebsiteLinks(String countryCode, String sysId, String category);	
	boolean saveOrUpdateWebsiteLink(WebsiteLink website);
	boolean deleteWebsiteLink(String pk);
	WebsiteLink getWebsiteLinkByPK(String pk);
	
	boolean clearDeviceCaches();
	
	//====website category=====
	List<WebsiteCategory> listAllWebsiteCategories();
	boolean saveOrUpdateWebsiteCategory(WebsiteCategory category);
	boolean deleteWebsiteCategory(String pk);
	WebsiteCategory getWebsiteCategory(String pk);
	
	/**
	 * [0]: website category list
	 * [1]: website country list
	 * @return
	 */
	Object[] listWebsiteCategoryAndCountries();
	
	//===website country====
	int addCountry(Country country);
	int deleteCountry(String pk);
}
